//
//  MSRequestClient.h
//  MSJD
//
//  Created by xiangbo on 2018/10/25.
//  Copyright © 2018 xiangbo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MSNetworkAPI.h"

@interface MSRequestClient : NSObject

+ (NSURLSessionTask *)GET:(NSString *)path
               parameters:(id)parameters
        responseClassType:(Class)classType
                  success:(MSRequestSuccess)success
                  failure:(MSRequestFailed)failure;

+ (NSURLSessionTask *)POST:(NSString *)path
                parameters:(id)parameters
         responseClassType:(Class)classType
             responseCache:(MSRequestCache)cacheBlock
                   success:(MSRequestSuccess)success
                   failure:(MSRequestFailed)failure;

@end
